package com.cqan.log.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.ws.rs.core.HttpHeaders;

/**
 * 通用日志，用户记录一般日志。
 * @author slaton
 *
 */
@Entity
//表名与类名不相同时重新定义表名.
@Table(name = "TBL_LOG_GENERIC")
//默认的缓存策略.
@SuppressWarnings("serial")
public class GenericLog extends BasicLog {

	//方法名称
	private String method;
	

	@Column(name="method",length=100)
	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

public GenericLog(){}
	
	public GenericLog(HttpHeaders headers,String ip){
		super(headers);
		this.setIp(ip);
	}
	public GenericLog(HttpHeaders headers,String ip,String method){
		super(headers);
		this.setIp(ip);
		this.setMethod(method);
	}
	public GenericLog(HttpHeaders headers){
		super(headers);
	}
	
	
}
